import { axios, get, post } from "./request"


export const ajax = {

    register: params => post("/admin/register", params), //注册提交用户信息

    login: params => post("/admin/login", params), //登录提交用户信息
    
    findOne: params => post("/admin/findOne", params), //发送验证码

    checkWord: params => post("/admin/checkWord", params), //校验验证码

    forgetPass: params => post("/admin/forgetPass", params), //找回密码

    getUserinfo: params => post("/admin/getuserinfo", params), //获取用户信息

    changeuser: params => post("/admin/changeuser", params), //修改用户密码

    uploadfile:body=>post("/admin/uploadfile",body),//上传文件

    changeuserinfo:body=>post("/admin/changeuserinfo",body), //修改用户信息

    addanno:body=>post("/admin/addanno",body),//公告新增
    
    annolist:body=>post("/admin/annolist",body),//公告列表

    annodelete:body=>post("/admin/annodelete",body),//公告删除

    getannoone:body=>post("/admin/getannoone",body),//查询单挑公告信息

    addadvise:body=>post("/admin/addadvise",body),//意见新增

    adviselist:body=>post("/admin/adviselist",body),//意见列表

    getadviseone:body=>post("/admin/getadviseone",body),//查询单挑公告信息

    advisedelete:body=>post("/admin/advisedelete",body),//意见删除

    userlist:body=>post("/admin/userlist",body),//用户列表

    userdelete:body=>post("/admin/userdelete",body),//用户删除

    changeuserRole:body=>post("/admin/changeuserRole",body),//用户权限修改

    addclass:body=>post("/admin/addclass",body),//课程新增

    classlist:body=>post("/admin/classlist",body),//课程列表

    classdelete:body=>post("/admin/classdelete",body),//课程删除

    changeclass:body=>post("/admin/changeclass",body),//课程修改

    addscore:body=>post("/admin/addscore",body),//分数新增

    getstudentinfo:body=>post("/admin/getstudentinfo",body),//查询个人信息

    scorelist:body=>post("/admin/scorelist",body),//成绩列表





    



    getCaptcha: (params) => get('http://47.104.209.44:3333/captcha/sent', params), // 发送验证码

    checkCaptcha: (params) => get('http://47.104.209.44:3333/captcha/verify', params), // 验证验证码

    
}